<?php

namespace Medicina\BackendBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class ConcursoSearchType extends AbstractType {

    public function buildForm(FormBuilder $builder, array $options) {
        $builder
                ->add('numeroExpediente', 'text', array('required' => false))
                ->add('catedra', null, array('required' => false))
                ->add('virtualSearchFechaDesde', 'date', array(
                    'widget' => 'single_text',
                    'format' => 'dd/MM/yyyy',
                    'attr' => array('class' => 'date'),
                    'label' => "Fecha Desde",
                    'required' => false
                ))
                ->add('virtualSearchFechaHasta', 'date', array(
                    'widget' => 'single_text',
                    'format' => 'dd/MM/yyyy',
                    'attr' => array('class' => 'date'),
                    'label' => "Fecha Hasta",
                    'required' => false
                ))
            
        ;
    }

    public function getName() {
        return 'ConcursoSearchType';
    }

}